{extend name="public/layerbase" /}
{block name="css"}
    <style>

    </style>

{/block}

{block name="content"}

    <div class="main-container" id="main-container">
        <div class="main-content">
            <div class="page-content">
                <div class="page-content-area">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="widget-box">
                                <div class="widget-header widget-header-blue widget-header-flat">
                                    <h4 class="widget-title lighter">新增幼儿园</h4>
                                </div>
                                <div class="widget-body">
                                    <div class="widget-main">
                                        <div class="step-content pos-rel" >
                                            <div class="step-pane active" >

                                                <form class="form-horizontal " id="form" method="post">

                                                    <div class="form-group">
                                                        <label class="col-sm-3 control-label no-padding-right" > 幼儿园名称：</label>
                                                        <div class="col-sm-9">
                                                            <div class="clearfix">
                                                                <input type="text" name="name" placeholder="输入幼儿园" class="col-xs-12 col-sm-9" value=""/>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="form-group">
                                                        <label class="col-sm-3 control-label no-padding-right" > 地区名称：</label>
                                                        <div class="col-sm-9">
                                                            <div class="clearfix">
                                                                <select name="area" class="col-sm-9">
                                                                    {volist name="areas" id="vo"}
                                                                        <option name="{$vo.id}">{$vo.name}</option>
                                                                    {/volist}
                                                                </select>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="form-group">
                                                        <label class="col-sm-3 control-label no-padding-right" > 幼儿园地址：</label>
                                                        <div class="col-sm-9">
                                                            <div class="clearfix">
                                                                <input type="text" name="address" class="col-xs-12 col-sm-9">
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <hr />
                                                    <div class="clearfix" style="text-align: center">
                                                        <div class="col-md-offset-3 col-md-9">
                                                            {:token()}
                                                            <button class="btn btn-info" type="submit" id="submit">
                                                                <i class="ace-icon fa fa-check bigger-110"></i>
                                                                提交
                                                            </button>

                                                            &nbsp; &nbsp; &nbsp;
                                                            <button class="btn" type="reset">
                                                                <i class="ace-icon fa fa-undo bigger-110"></i>
                                                                重置
                                                            </button>
                                                        </div>
                                                    </div>
                                                </form>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

{/block}

{block name="js"}

    <script>
        var define_fileds =  {
            name: {
                message: '幼儿园验证失败',
                validators: {
                    notEmpty: {
                        message: '幼儿园不能为空'
                    },
                }
            },
        };
        var ajaxurl = "{:url('add')}";
    </script>


{/block}